package xiao.ze.demo.service.impl;

import org.springframework.stereotype.Service;
import xiao.ze.demo.entity.User;
import xiao.ze.demo.mapper.UserMapper;
import xiao.ze.demo.service.UserService;

import javax.annotation.Resource;

/**
 * @description: TODO
 * @author: Tokyo_God
 * @date: 2021/2/14 11:52
 * Role of:
 * @version: v1.0
 */
@Service
public class UserServiceImpl implements UserService {

    @Resource
    UserMapper userMapper;


    @Override
    public User userLogin(String name, String pwd) {
        return userMapper.userLogin(name, pwd);
    }

    @Override
    public User selUserNo(String no) {
        return userMapper.selUserNo(no);
    }

    @Override
    public int userRegister(User user) {
        return userMapper.userRegister(user);
    }
}
